Skip to content

[Snyk] Upgrade monaco-editor - #240

Merged
Blankll merged 5 commits into
masterfrom
snyk-upgrade-99337c67ef9366dbe6f59026e3b5c1a6
Dec 26, 2025
Merged

Blankll merged 5 commits into
masterfrom
snyk-upgrade-99337c67ef9366dbe6f59026e3b5c1a6

Conversation

@Blankll

@Blankll Blankll commented Oct 17, 2025

Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to upgrade monaco-editor from 0.52.2 to 0.53.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 16 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: monaco-editor
  • 0.53.0 - 2025-09-08

    Changes:

    • #4980: sets node version
    • #4979: v0.53.0
    • #4978: updates changelog
    • #4975: Fixes worker sandbox problems
    • #4969: Implements language selection
    • #4967: adds amd and firefox/webkit to smoke tests
    • #4966: Fixes AMD web worker loading
    • #4965: Updates monaco-editor-core dependency & fixes basic-languages amd file
    • #4964: Run npm run playwright-install
    • #4963: Hediet/b/successful mosquito
    See More
    • #4962: Fixes node version
    • #4950: ESM Progress
    • #4913: Bump webpack-dev-server from 4.10.0 to 5.2.1 in /samples
    • #4915: Add snowflake sql keywords
    • #4895: Fixes #4799
    • #4742: Update webpack plugin to support module workers
    • #4824: Fix CI and website workflows
    • #4747: Engineering - add dependsOn field
    • #4734: Bump express from 4.19.2 to 4.21.1 in /website
    • #4616: Bump requirejs from 2.3.6 to 2.3.7
    • #4668: Bump micromatch from 4.0.5 to 4.0.8 in /website
    • #4726: Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /website
    • #4595: Bump ws from 8.8.1 to 8.18.0 in /samples
    • #4697: Bump body-parser and express in /samples
    • #4696: Bump rollup from 2.79.1 to 2.79.2

    This list of changes was auto generated.

  • 0.53.0-rc2 - 2025-09-08
    No content.
  • 0.53.0-dev-20250908 - 2025-09-08
    No content.
  • 0.53.0-dev-20250907 - 2025-09-07
    No content.
  • 0.53.0-dev-20250906 - 2025-09-06

    Changes:

    • #4978: updates changelog
    • #4975: Fixes worker sandbox problems

    This list of changes was auto generated.

  • 0.53.0-dev-20250905 - 2025-09-05
  • 0.53.0-dev-20250904 - 2025-09-04
    No content.
  • 0.53.0-dev-20250903 - 2025-09-03
    No content.
  • 0.53.0-dev-20250902 - 2025-09-02
    No content.
  • 0.53.0-dev-20250901 - 2025-09-01
    No content.
  • 0.53.0-dev-20250831 - 2025-08-31
    No content.
  • 0.53.0-dev-20250830 - 2025-08-30
  • 0.53.0-dev-20250829 - 2025-08-29
  • 0.53.0-dev-20250828.2 - 2025-08-28
  • 0.53.0-dev-20250828.1 - 2025-08-28
  • 0.53.0-dev-20250828 - 2025-08-28
  • 0.52.2 - 2024-12-09
from monaco-editor GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade monaco-editor from 0.52.2 to 0.53.0.

See this package in npm:
monaco-editor

See this project in Snyk:
https://app.snyk.io/org/blankll/project/d19c39b4-9b25-4232-b09a-2d71e94c8a24?utm_source=github&utm_medium=referral&page=upgrade-pr
@codecov

codecov Bot commented Oct 17, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.69%. Comparing base (60f3f39) to head (06403a3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
+ Coverage   50.55%   50.69%   +0.13%     
==========================================
  Files          24       24              
  Lines         360      361       +1     
  Branches       53       53              
==========================================
+ Hits          182      183       +1     
  Misses        174      174              
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Blankll

Blankll commented Dec 26, 2025

Copy link
Copy Markdown
Member Author

@copilot, analyze the failure and fix those incompatible issues

Copilot AI commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

@Blankll I've opened a new pull request, #251, to work on those changes. Once the pull request is ready, I'll request review from you.

Monaco-editor 0.55.0 introduced breaking changes by moving nested
namespaces (`languages.typescript`, `languages.json`, etc.) to top-level
exports. The existing code used the deprecated API, causing TypeScript
compilation failures.

## Changes

- **Updated monaco-editor**: 0.53.0 → 0.55.1 (latest stable)
- **Fixed TypeScript namespace usage**: Migrated from
`monaco.languages.typescript.typescriptDefaults` to top-level
`typescript.typescriptDefaults` export
- **Added Window type extension**: Declared `MonacoEnvironment` property
on Window interface to resolve TypeScript compilation error
- **Updated test mocks**: Reflected new API structure in Jest mocks

## Example

```typescript
// Before (deprecated in 0.55.0)
import * as monaco from 'monaco-editor';
monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);

// After
import * as monaco from 'monaco-editor';
import { typescript } from 'monaco-editor';
typescript.typescriptDefaults.setEagerModelSync(true);
```

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Blankll <28639911+Blankll@users.noreply.github.com>
@Blankll Blankll changed the title [Snyk] Upgrade monaco-editor from 0.52.2 to 0.53.0 [Snyk] Upgrade monaco-editor Dec 26, 2025
@Blankll
Blankll merged commit 830cecf into master Dec 26, 2025
6 checks passed
@Blankll
Blankll deleted the snyk-upgrade-99337c67ef9366dbe6f59026e3b5c1a6 branch December 26, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants